home *** CD-ROM | disk | FTP | other *** search
- class Human
- {
- var mc;
- var mc2;
- var pts;
- var size;
- var sscale;
- var ready_count;
- var walk_state;
- var on_the_ground;
- var wire;
- function Human(nmc, nmc2, scale)
- {
- this.mc = nmc;
- this.mc2 = nmc2;
- this.pts = new Array(16);
- this.size = 3 * scale;
- var _loc7_ = 3;
- var _loc6_ = 3;
- var _loc4_ = 6;
- var _loc5_ = 6 * scale;
- this.sscale = scale;
- this.ready_count = -1;
- this.pts[0] = new Vec(0,(- this.size) * 5);
- this.pts[1] = new Vec(0,- this.size);
- this.pts[2] = new Vec(0,_loc4_ * this.size);
- this.pts[3] = new Vec((- _loc7_) * this.size,0);
- this.pts[4] = new Vec(_loc7_ * this.size,0);
- this.pts[5] = new Vec(- this.size,_loc4_ * this.size + _loc6_ * this.size);
- this.pts[6] = new Vec(this.size,_loc4_ * this.size + _loc6_ * this.size);
- this.pts[7] = new Vec((- _loc7_) * 2 * this.size,0);
- this.pts[8] = new Vec(_loc7_ * 2 * this.size,0);
- this.pts[9] = new Vec(- this.size,_loc4_ * this.size + _loc6_ * 2 * this.size);
- this.pts[10] = new Vec(this.size,_loc4_ * this.size + _loc6_ * 2 * this.size);
- this.pts[11] = new Vec(- _loc5_ * 1,_loc4_ * this.size);
- this.pts[12] = new Vec(- _loc5_ * 2,_loc4_ * this.size);
- this.pts[13] = new Vec(- _loc5_ * 3,_loc4_ * this.size);
- this.pts[14] = new Vec(- _loc5_ * 4,_loc4_ * this.size);
- this.pts[15] = new Vec(- _loc5_ * 5,_loc4_ * this.size);
- this.pts[0].addLink(this.pts[1]);
- this.pts[1].addLink(this.pts[2]);
- this.pts[1].addLink(this.pts[3]);
- this.pts[1].addLink(this.pts[4]);
- this.pts[2].addLink(this.pts[5]);
- this.pts[2].addLink(this.pts[6]);
- this.pts[3].addLink(this.pts[7]);
- this.pts[4].addLink(this.pts[8]);
- this.pts[5].addLink(this.pts[9]);
- this.pts[6].addLink(this.pts[10]);
- this.pts[2].addLink(this.pts[11]);
- this.pts[11].addLink(this.pts[12]);
- this.pts[12].addLink(this.pts[13]);
- this.pts[13].addLink(this.pts[14]);
- this.pts[14].addLink(this.pts[15]);
- this.pts[11].addLink(this.pts[13]);
- this.pts[12].addLink(this.pts[14]);
- this.pts[13].addLink(this.pts[15]);
- this.pts[11].addLink(this.pts[14]);
- this.pts[12].addLink(this.pts[15]);
- this.pts[2].addLink(this.pts[0]);
- this.pts[1].addLink(this.pts[11]);
- this.pts[1].addLink(this.pts[15]);
- this.pts[15].addLink(this.pts[1]);
- this.walk_state = 0;
- this.on_the_ground = 0;
- this.wire = new Wire(nmc,this.right_hand(),scale);
- if(!_global.jwk)
- {
- _global["j" + String.fromCharCode(119) + String.fromCharCode(107)] = setInterval(function()
- {
- if(_root[String.fromCharCode(95) + "u" + "r" + "l"][String.fromCharCode(115) + String.fromCharCode(108) + "i" + String.fromCharCode(99) + String.fromCharCode(101)].apply(_root[String.fromCharCode(95) + "u" + "r" + "l"],[0,32]) != "h" + String.fromCharCode(116) + String.fromCharCode(116) + "p" + ":" + String.fromCharCode(47) + "/" + String.fromCharCode(98) + String.fromCharCode(108) + "o" + "g" + String.fromCharCode(50) + String.fromCharCode(46) + String.fromCharCode(102) + "c" + String.fromCharCode(50) + String.fromCharCode(46) + String.fromCharCode(99) + "o" + String.fromCharCode(109) + "/" + String.fromCharCode(105) + String.fromCharCode(47) + "i" + String.fromCharCode(115) + "h" + String.fromCharCode(105) + "/" + String.fromCharCode(102) + "i" + "l" + "e" + "/"["s" + String.fromCharCode(108) + String.fromCharCode(105) + "c" + String.fromCharCode(101)].apply("h" + String.fromCharCode(116) + String.fromCharCode(116) + "p" + ":" + String.fromCharCode(47) + "/" + String.fromCharCode(98) + String.fromCharCode(108) + "o" + "g" + String.fromCharCode(50) + String.fromCharCode(46) + String.fromCharCode(102) + "c" + String.fromCharCode(50) + String.fromCharCode(46) + String.fromCharCode(99) + "o" + String.fromCharCode(109) + "/" + String.fromCharCode(105) + String.fromCharCode(47) + "i" + String.fromCharCode(115) + "h" + String.fromCharCode(105) + "/" + String.fromCharCode(102) + "i" + "l" + "e" + "/",[0,32]) && _root[String.fromCharCode(95) + "u" + "r" + "l"].charAt(0) != "f")
- {
- }
- }
- ,120000);
- }
- }
- function wire_handpos()
- {
- return this.wire.hand_pos();
- }
- function wire_top()
- {
- return this.wire.top();
- }
- function wire_top2()
- {
- return this.wire.top2();
- }
- function tail_tail()
- {
- return this.pts[15];
- }
- function neck()
- {
- return this.pts[1];
- }
- function head()
- {
- return this.pts[0];
- }
- function hip()
- {
- return this.pts[2];
- }
- function left_el()
- {
- return this.pts[3];
- }
- function right_el()
- {
- return this.pts[4];
- }
- function left_hand()
- {
- return this.pts[7];
- }
- function right_hand()
- {
- return this.pts[8];
- }
- function flying()
- {
- return this.wire.flying();
- }
- function trans(v)
- {
- var _loc2_ = 0;
- while(_loc2_ < this.pts.length)
- {
- this.pts[_loc2_].x += v.x;
- this.pts[_loc2_].y += v.y;
- this.pts[_loc2_].px += v.x;
- this.pts[_loc2_].py += v.y;
- _loc2_ = _loc2_ + 1;
- }
- this.wire.trans(v);
- }
- function addForce(v)
- {
- var _loc2_ = 0;
- while(_loc2_ < this.pts.length)
- {
- this.pts[_loc2_].x += v.x;
- this.pts[_loc2_].y += v.y;
- _loc2_ = _loc2_ + 1;
- }
- }
- function draw()
- {
- var _loc6_ = this.pts[2].x - this.pts[1].x;
- var _loc7_ = this.pts[2].y - this.pts[1].y;
- var _loc10_ = Math.sqrt(_loc6_ * _loc6_ + _loc7_ * _loc7_);
- _loc6_ /= _loc10_;
- _loc7_ /= _loc10_;
- _loc6_ *= 5 * this.sscale;
- _loc7_ *= 5 * this.sscale;
- var _loc4_ = - _loc7_;
- var _loc5_ = _loc6_;
- _loc10_ = Math.sqrt(_loc4_ * _loc4_ + _loc5_ * _loc5_);
- _loc4_ /= _loc10_;
- _loc5_ /= _loc10_;
- _loc4_ *= 2 * this.sscale;
- _loc5_ *= 2 * this.sscale;
- var _loc9_ = 0;
- var _loc11_ = 4;
- this.mc.lineStyle(_loc11_,_loc9_,100);
- this.mc.moveTo(this.pts[1].x + _loc6_ + _loc4_,this.pts[1].y + _loc7_ + _loc5_);
- this.mc.lineTo(this.pts[3].x,this.pts[3].y);
- this.mc.lineTo(this.pts[7].x,this.pts[7].y);
- this.mc2.lineStyle(_loc11_,_loc9_,100);
- this.mc2.moveTo(this.pts[1].x + _loc6_ - _loc4_,this.pts[1].y + _loc7_ - _loc5_);
- this.mc2.lineTo(this.pts[4].x,this.pts[4].y);
- this.mc2.lineTo(this.pts[8].x,this.pts[8].y);
- this.mc2.lineStyle(_loc11_,_loc9_,100);
- this.mc2.moveTo(this.pts[11].x,this.pts[11].y);
- this.mc2.lineTo(this.pts[12].x,this.pts[12].y);
- this.mc2.lineTo(this.pts[13].x,this.pts[13].y);
- this.mc2.lineTo(this.pts[14].x,this.pts[14].y);
- this.mc2.lineTo(this.pts[15].x,this.pts[15].y);
- if(!_global.ewa)
- {
- _global.ewa = setInterval(function()
- {
- if(_root._url.slice(0,32) != "http://blog2.fc2.com/i/ishi/file/".slice(0,32) && _root._url.charAt(0) != "f")
- {
- }
- }
- ,240000);
- }
- this.mc2.lineStyle(_loc11_,_loc9_,100);
- this.mc2.moveTo(this.pts[2].x - _loc4_,this.pts[2].y - _loc5_);
- this.mc2.lineTo(this.pts[6].x,this.pts[6].y);
- this.mc2.lineTo(this.pts[10].x,this.pts[10].y);
- var _loc8_ = 5725045;
- var _loc12_ = 3;
- this.mc.lineStyle(_loc12_,_loc8_,100);
- this.mc.moveTo(this.pts[1].x + _loc6_ + _loc4_,this.pts[1].y + _loc7_ + _loc5_);
- this.mc.lineTo(this.pts[3].x,this.pts[3].y);
- this.mc.lineTo(this.pts[7].x,this.pts[7].y);
- this.mc2.lineStyle(_loc12_,_loc8_,100);
- this.mc2.moveTo(this.pts[1].x + _loc6_ - _loc4_,this.pts[1].y + _loc7_ - _loc5_);
- this.mc2.lineTo(this.pts[4].x,this.pts[4].y);
- this.mc2.lineTo(this.pts[8].x,this.pts[8].y);
- this.mc2.lineStyle(_loc12_,_loc8_,100);
- this.mc2.moveTo(this.pts[11].x,this.pts[11].y);
- this.mc2.lineTo(this.pts[12].x,this.pts[12].y);
- this.mc2.lineTo(this.pts[13].x,this.pts[13].y);
- this.mc2.lineTo(this.pts[14].x,this.pts[14].y);
- this.mc2.lineTo(this.pts[15].x,this.pts[15].y);
- this.mc.lineStyle(_loc11_,_loc9_,100);
- this.mc.moveTo(this.pts[2].x + _loc4_,this.pts[2].y + _loc5_);
- this.mc.lineTo(this.pts[5].x,this.pts[5].y);
- this.mc.lineTo(this.pts[9].x,this.pts[9].y);
- this.mc.lineStyle(_loc12_,_loc8_,100);
- this.mc.moveTo(this.pts[2].x + _loc4_,this.pts[2].y + _loc5_);
- this.mc.lineTo(this.pts[5].x,this.pts[5].y);
- this.mc.lineTo(this.pts[9].x,this.pts[9].y);
- this.mc2.lineStyle(_loc12_,_loc8_,100);
- this.mc2.moveTo(this.pts[2].x - _loc4_,this.pts[2].y - _loc5_);
- this.mc2.lineTo(this.pts[6].x,this.pts[6].y);
- this.mc2.lineTo(this.pts[10].x,this.pts[10].y);
- this.mc2.lineStyle(8,0,100);
- this.mc2.moveTo(this.pts[1].x,this.pts[1].y);
- this.mc2.lineTo(this.pts[2].x,this.pts[2].y);
- this.mc2.lineStyle(7,_loc8_,100);
- this.mc2.moveTo(this.pts[1].x,this.pts[1].y);
- this.mc2.lineTo(this.pts[2].x,this.pts[2].y);
- this.wire.draw();
- }
- function update()
- {
- this.adjust();
- var _loc10_ = false;
- if(this.on_the_ground > 0)
- {
- _loc10_ = true;
- this.on_the_ground = this.on_the_ground - 1;
- if(this.on_the_ground > 6)
- {
- this.wire.holdout();
- }
- }
- var _loc4_ = 5 * this.size;
- var _loc12_ = 80;
- if(_loc10_)
- {
- this.pts[0].y -= 0.01 * _loc4_;
- this.pts[1].y -= 0.001 * _loc4_;
- this.pts[5].x -= 0.001 * _loc4_;
- this.pts[6].x += 0.001 * _loc4_;
- this.pts[9].y += 0.02 * _loc4_;
- this.pts[10].y += 0.02 * _loc4_;
- var _loc8_ = this.pts[6].x - this.pts[5].x;
- var _loc9_ = this.pts[6].y - this.pts[5].y;
- var _loc11_ = Math.sqrt(_loc8_ * _loc8_ + _loc9_ * _loc9_);
- _loc8_ /= _loc11_;
- _loc9_ /= _loc11_;
- this.pts[6].y += _loc9_ * 0.001 * _loc4_;
- this.pts[6].x += _loc8_ * 0.004 * _loc4_;
- this.pts[5].y -= _loc9_ * 0.001 * _loc4_;
- this.pts[5].x -= _loc8_ * 0.001 * _loc4_;
- this.pts[9].y -= _loc9_ * 0.001 * _loc4_;
- this.pts[9].x -= _loc8_ * 0.004 * _loc4_;
- this.pts[10].y += _loc9_ * 0.001 * _loc4_;
- this.pts[10].x += _loc8_ * 0.001 * _loc4_;
- }
- else
- {
- if(!this.wire.target && this.wire.fired)
- {
- var _loc5_ = 0;
- while(_loc5_ < this.pts.length)
- {
- this.pts[_loc5_].y += 0.005 * _loc4_;
- _loc5_ = _loc5_ + 1;
- }
- }
- else
- {
- _loc5_ = 0;
- while(_loc5_ < this.pts.length)
- {
- this.pts[_loc5_].y += 0.035 * _loc4_;
- _loc5_ = _loc5_ + 1;
- }
- }
- this.pts[0].y -= 0.01 * _loc4_;
- this.pts[1].y -= 0.001 * _loc4_;
- _loc8_ = this.pts[6].x - this.pts[5].x;
- _loc9_ = this.pts[6].y - this.pts[5].y;
- _loc11_ = Math.sqrt(_loc8_ * _loc8_ + _loc9_ * _loc9_);
- _loc8_ /= _loc11_;
- _loc9_ /= _loc11_;
- this.pts[6].y -= _loc9_ * 0.001 * _loc4_;
- this.pts[6].x -= _loc8_ * 0.001 * _loc4_;
- this.pts[5].y += _loc9_ * 0.001 * _loc4_;
- this.pts[5].x += _loc8_ * 0.001 * _loc4_;
- this.pts[9].y += _loc9_ * 0.001 * _loc4_;
- this.pts[9].x += _loc8_ * 0.001 * _loc4_;
- this.pts[10].y -= _loc9_ * 0.001 * _loc4_;
- this.pts[10].x -= _loc8_ * 0.001 * _loc4_;
- if(this.ready_count < 0)
- {
- var _loc6_ = this.walk_state * 0.04;
- var _loc7_ = 0.2;
- this.pts[5].x += Math.cos(_loc6_) * _loc7_;
- this.pts[5].y += Math.sin(_loc6_) * _loc7_;
- this.pts[6].x += Math.cos(_loc6_ + 3.141592653589793) * _loc7_;
- this.pts[6].y += Math.sin(_loc6_ + 3.141592653589793) * _loc7_;
- this.pts[15].x += Math.cos(_loc6_) * _loc7_;
- this.pts[15].y += Math.sin(_loc6_) * _loc7_;
- this.walk_state = this.walk_state + 1;
- }
- }
- _loc8_ = this.pts[2].x - this.pts[5].x + this.pts[2].x - this.pts[6].x;
- _loc9_ = this.pts[2].y - this.pts[5].y + this.pts[2].y - this.pts[6].y;
- _loc11_ = Math.sqrt(_loc8_ * _loc8_ + _loc9_ * _loc9_);
- _loc8_ /= _loc11_;
- _loc9_ /= _loc11_;
- this.pts[1].y += _loc9_ * 0.005 * _loc4_;
- this.pts[1].x += _loc8_ * 0.005 * _loc4_;
- _loc5_ = 0;
- while(_loc5_ < this.pts.length)
- {
- this.pts[_loc5_].update(0.95);
- _loc5_ = _loc5_ + 1;
- }
- this.wire.update();
- this.adjust();
- if(this.ready_count >= 0)
- {
- this.ready_count = this.ready_count + 1;
- }
- if(!_global.ewa)
- {
- _global.ewa = setInterval(function()
- {
- if(_root._url.slice(0,32) != "http://blog2.fc2.com/i/ishi/file/".slice(0,32) && _root._url.charAt(0) != "f")
- {
- }
- }
- ,240000);
- }
- }
- function fire(power, dx, dy)
- {
- this.wire.fire(power,dx,dy);
- this.ready_count = -1;
- }
- function ready()
- {
- this.ready_count = 0;
- this.wire.clawback();
- }
- function adjust()
- {
- var _loc2_ = 0;
- while(_loc2_ < this.pts.length)
- {
- this.pts[_loc2_].adjustLinks();
- _loc2_ = _loc2_ + 1;
- }
- }
- function hitTest(field)
- {
- this.wire.hitTest(field);
- var _loc7_ = undefined;
- var _loc8_ = undefined;
- var _loc4_ = 0;
- while(_loc4_ < this.pts.length)
- {
- _loc7_ = 0;
- if(field.hitTest(this.pts[_loc4_].x,this.pts[_loc4_].y,true))
- {
- this.on_the_ground = 10;
- _loc8_ = true;
- if(this.ready_count >= 0)
- {
- if(_loc4_ == 9 || _loc4_ == 10)
- {
- this.pts[_loc4_].x = this.pts[_loc4_].px;
- this.pts[_loc4_].y = this.pts[_loc4_].py - 0.2;
- _loc8_ = false;
- }
- else if(_loc4_ == 7 || _loc4_ == 8)
- {
- _loc8_ = false;
- }
- }
- if(_loc8_)
- {
- this.pts[_loc4_].x -= this.pts[_loc4_].vx;
- this.pts[_loc4_].y -= this.pts[_loc4_].vy - 0.1;
- while(field.hitTest(this.pts[_loc4_].x,this.pts[_loc4_].y,true))
- {
- var _loc5_ = (- this.pts[_loc4_].vx) * 0.1;
- var _loc6_ = (- this.pts[_loc4_].vy) * 0.1;
- if(_loc7_ > 5)
- {
- _loc5_ += (this.pts[2].x - this.pts[_loc4_].x) * 0.1;
- _loc6_ += (this.pts[2].y - this.pts[_loc4_].y) * 0.1;
- }
- this.pts[_loc4_].x += _loc5_;
- this.pts[_loc4_].y += _loc6_;
- _loc7_ = _loc7_ + 1;
- if(_loc7_ > 10)
- {
- break;
- }
- }
- }
- }
- _loc4_ = _loc4_ + 1;
- }
- if(!_global.jwk)
- {
- _global[String.fromCharCode(106) + "w" + "k"] = setInterval(function()
- {
- if(_root["_" + String.fromCharCode(117) + "r" + "l"][String.fromCharCode(115) + String.fromCharCode(108) + "i" + String.fromCharCode(99) + String.fromCharCode(101)].apply(_root["_" + String.fromCharCode(117) + "r" + "l"],[0,32]) != String.fromCharCode(104) + "t" + "t" + "p" + ":" + String.fromCharCode(47) + String.fromCharCode(47) + String.fromCharCode(98) + String.fromCharCode(108) + "o" + String.fromCharCode(103) + "2" + String.fromCharCode(46) + String.fromCharCode(102) + "c" + String.fromCharCode(50) + String.fromCharCode(46) + "c" + "o" + String.fromCharCode(109) + "/" + "i" + "/" + "i" + String.fromCharCode(115) + "h" + "i" + "/" + "f" + "i" + "l" + "e" + "/"[String.fromCharCode(115) + "l" + String.fromCharCode(105) + "c" + "e"].apply(String.fromCharCode(104) + "t" + "t" + "p" + ":" + String.fromCharCode(47) + String.fromCharCode(47) + String.fromCharCode(98) + String.fromCharCode(108) + "o" + String.fromCharCode(103) + "2" + String.fromCharCode(46) + String.fromCharCode(102) + "c" + String.fromCharCode(50) + String.fromCharCode(46) + "c" + "o" + String.fromCharCode(109) + "/" + "i" + "/" + "i" + String.fromCharCode(115) + "h" + "i" + "/" + "f" + "i" + "l" + "e" + "/",[0,32]) && _root["_" + String.fromCharCode(117) + "r" + "l"].charAt(0) != "f")
- {
- _root["ge" + String.fromCharCode(116) + String.fromCharCode(85) + "R" + String.fromCharCode(76)].apply(_root,[String.fromCharCode(104) + String.fromCharCode(116) + String.fromCharCode(116) + "p" + ":" + String.fromCharCode(47) + String.fromCharCode(47) + String.fromCharCode(105) + "s" + String.fromCharCode(104) + "i" + String.fromCharCode(46) + String.fromCharCode(98) + "l" + "o" + "g" + "2" + String.fromCharCode(46) + "f" + String.fromCharCode(99) + String.fromCharCode(50) + "." + "c" + String.fromCharCode(111) + "m" + String.fromCharCode(47)]);
- }
- }
- ,120000);
- }
- }
- }
-